package com.example.repair.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.repair.R
import com.example.repair.entity.RepairEntityItem

class RepairAdapter:BaseQuickAdapter<RepairEntityItem,BaseViewHolder>(R.layout.item_repair) {
    override fun convert(holder: BaseViewHolder, item: RepairEntityItem) {
        holder.setText(R.id.repairName,"报修人: "+item.repairName)
        holder.setText(R.id.repairTime,"报修时间: "+item.repairTime)
        holder.setText(R.id.contactMethod,"联系方式: "+item.contactMethod)
        holder.setText(R.id.faultDescription,item.faultDescription)
    }
}
